﻿using RXY_Mall.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace RXY_Mall.Api.Models
{
    public class AddCartInput
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public int user_id { get; set; }
        /// <summary>
        /// SkuID
        /// </summary>
        public int sku_id { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int quantity { get; set; }
    }

    public class UpdateCartInput
    {
        public int user_id { get; set; }
        public int cart_id { get; set; }
        public int quantity { get; set; }
    }

    public class DeleteCartInput
    {
        public List<int> cart_ids { get; set; }
        public int user_id { get; set; }
    }

    /// <summary>
    /// 购物车输出信息
    /// </summary>
    public class CartOutput
    {
        internal int quantity;
        internal int sku_id;
        internal DateTime add_time;

        /// <summary>
        /// 购物车编号
        /// </summary>
        public int cart_id { get; set; }
        /// <summary>
        /// 店铺编号
        /// </summary>
        public int shop_id { get; set; }
        /// <summary>
        /// 商品分类编号
        /// </summary>
        public int category_id { get; set; }
        /// <summary>
        /// 商品类型
        /// </summary>
        public GoodsType goods_type { get; set; }
        /// <summary>
        /// 商品编号
        /// </summary>
        public int goods_id { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string goods_name { get; set; } 
        /// <summary>
        /// Sku
        /// </summary>
        public SkuOutput sku { get; set; }
        
    }

}